﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ucThoiTrangDefault.ascx.cs" Inherits="ucControl_ucThoiTrangDefault" %>
<div class="ContCW">
    <div class="titleContent">
        <div class="textContent">
            Thời trang</div>
        <div class="bnt_xemthem">
            <a href="#">
                <img src="images/button/bnt_xemthem.png" width="93" height="31" /></a></div>
    </div>
    <div class="boxContentC1">
        <div class="boxContentW1">
            <div class="imgContent">
                <table border="0" cellpadding="0" cellspacing="0" width="100%">
                    <tr>
                        <td>
                            <asp:ListView runat="server" ID="lvItems" ItemPlaceholderID="groupPlaceholder" GroupItemCount="3"
                                GroupPlaceholderID="layoutTemplate" OnPagePropertiesChanged="lvItems_PagePropertiesChanged">
                                <LayoutTemplate>
                                    <table id="layoutTemplate" runat="server" border="0" cellpadding="0" cellspacing="0">
                                    </table>
                                </LayoutTemplate>
                                <GroupTemplate>
                                    <tr>
                                        <div id="groupPlaceholder" runat="server">
                                        </div>
                                    </tr>
                                </GroupTemplate>
                                <ItemTemplate>
                                    <td style="padding: 10px 0 15px 0px;">
                                        <asp:HyperLink ID="lnkItemDetails" runat="server" NavigateUrl=''>
                                            <div class="imgContent" price='<%# Eval("BaseSellingPrice") %>' matchedprice='0'
                                                code='<%# Eval("ItemID") %>'>
                                                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                                    <tr>
                                                        <td align="center" style="padding: 0px; height: 200px">
                                                            <table width="100%" border="0" cellspacing="0" cellpadding="5">
                                                                <tr>
                                                                    <td class="img_border">
                                                                        <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl='<%# "~/ChiTietSanPham.aspx?id=" + Eval("ItemID") + "&idgroup=" + Eval("IDGroup")  %>'>
                                                                            <asp:Image ID="img" runat="server" ImageUrl='<%# "~/ImageProcess.ashx?file=" + "~/Admin/images/Items/" + Eval("ImageURL") + "&width=100&heigh=100&dd=true" %>'
                                                                                AlternateText="No Image" /></asp:HyperLink>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td>
                                                                        <p>
                                                                            <%# Eval("ItemName") %>
                                                                        </p>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td>
                                                                        <div class="line4">
                                                                        </div>
                                                                        <p class="textR1">
                                                                            <strong>
                                                                                <%# double.Parse (Eval("BaseSellingPrice").ToString()).ToString("0,00.##") %>
                                                                                VNĐ </strong>
                                                                        </p>
                                                                    </td>
                                                                </tr>
                                                            </table>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                         <td align="center"> <!--class="bnt_dathang"-->
                                                            <table border="0" cellspacing="3" cellpadding="0">
                                                                <tr>
                                                                    <td width="1">
                                                                        <asp:HyperLink ID="lnk" runat="server" NavigateUrl='<%# "~/ChiTietSanPham.aspx?id=" + Eval("ItemID")+ "&idgroup=" + Eval("IDGroup")  %>'>
                                                                            <asp:Image ID="Image3" runat="server" ImageUrl="~/images/chitiet.png" />
                                                                        </asp:HyperLink>
                                                                    </td>
                                                                    <td>
                                                                      
                                                                       
                                                                    </td>
                                                                    <td  width="1">
                                                                        <asp:HyperLink ID="HyperLink2" runat="server" NavigateUrl='' ToolTip="Thêm vào giỏ hàng">
                                                                            <asp:Image ID="Image1" runat="server" ImageUrl="~/images/dathang.png" onclick='<%#string.Format("fn_AddToCart(\"{0}|{1}|{2}\")", Eval("ItemID").ToString(), Eval("BaseSellingPrice").ToString(),"0")%>' />
                                                                        </asp:HyperLink>
                                                                    </td>
                                                                </tr>
                                                            </table>
                                                        </td>
                                                    </tr>
                                                </table>
                                            </div>
                                        </asp:HyperLink>
                                    </td>
                                </ItemTemplate>
                            </asp:ListView>
                        </td>
                    </tr>
                    <%--<tr class="paging">
                        <td style="padding-bottom: 3px">
                            <asp:ImageButton ID="btxemthem" runat="server" ImageUrl="~/images/chitiet.png" OnClick="btxemthem_Click" />
                        </td>
                    </tr>--%>
                </table>
            </div>
        </div>
    </div>
    <div class="boxContentB">
    </div>
</div>

<script language="javascript" type="text/javascript">
    function fn_AddToCart(productCodeAndPrice) {
        PageMethods.SetShoppingCartSesstion(productCodeAndPrice, SetShoppingCart);
    }
</script>

